<template>
	
	<form @submit="submit" :data-action="`/api/station/save?stationId=${param.id}`">
			
			<view class="father">
				<view class="fixAuto bb">
					<view class="w100">
						是否自动校准
					</view>
					<view class="item ">
						<view class="flex ">
							<view :class="autoCalibrate == 0 ? 'red' : 'green'">{{autoCalibrateList[autoCalibrate]}}</view>
							<view class="sIcon-arrowRight pl10 gray"></view>
							<input type="number" name="x.autoCalibrate|是否自动校准" :value="autoCalibrate" style="display: none;"/>
						</view>
					</view>
				</view>
				<picker mode="selector" class="abs op0" :range="autoCalibrateList" @change="autoCalibrate=$event.detail.value">
					<view>请选择</view>
				</picker>
			</view>
			
			<view class="fixAuto bb middle">
				<view class="w100">
					控制级别
				</view>
				<view>
					<input type="text" name="x.controlLevel|控制级别|0~50" placeholder="请输入控制级别">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					许可证编号
				</view>
				<view>
					<input type="text" name="x.licenseNum|许可证编号|0~100" placeholder="请输入许可证编号">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					监控编码
				</view>
				<view>
					<input type="text" name="x.monitorNum|监控编码|0~100" placeholder="请输入监控编码">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					设计排放量
				</view>
				<view>
					<input type="text" name="x.emissions|设计排放量|0~30" placeholder="请输入设计排放量">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					排放依据
				</view>
				<view>
					<input type="text" name="x.emissionReference|排放依据|0~500" placeholder="请输入排放依据">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					排气筒高度
				</view>
				<view>
					<input type="number" name="x.height|排气筒高度|amount" placeholder="请输入排气筒高度">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					烟气采样位置
				</view>
				<view>
					<input type="text" name="x.samplingLocation|烟气采样位置|0~200" placeholder="请输入烟气采样位置">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					流速测量位置
				</view>
				<view>
					<input type="text" name="x.velocityMeasurement|流速测量位置|0~200" placeholder="请输入流速测量位置">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					测流位置截面积
				</view>
				<view>
					<input type="number" name="x.measuringSection|测流位置截面积|amount" placeholder="请输入测流位置截面积">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					采样方式
				</view>
				<view>
					<input type="text" name="x.samplingType|采样方式|0~100" placeholder="请输入采样方式">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					输送距离
				</view>
				<view>
					<input type="number" name="x.distance|输送距离|amount" placeholder="请输入输送距离">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					稀释法稀释比
				</view>
				<view>
					<input type="number" name="x.dilutionRate|稀释法稀释比|amount" placeholder="请输入稀释法稀释比">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					稀释气流量或压力
				</view>
				<view>
					<input type="text" name="x.gasFlow|稀释气流量或压力|0~30" placeholder="请输入稀释气流量或压力">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					样品气流量或压力
				</view>
				<view>
					<input type="text" name="x.samplingPressure|样品气流量或压力|0~100" placeholder="请输入样品气流量或压力">
				</view>
			</view>
			
			<view class="plr100 pd30">
				<button form-type="submit" class="btn block rds23">
					保存记录
				</button>
			</view>
		</form>

	</layout>
</template>

<script>
	export default {
		data() {
			return {
				param:{id:""} ,
			}
		},
		onLoad(params) {
			this.param = params ;
		},
		methods: {
			
			submit:function(e){
				this.form.submit(e , this.success);
			},
			
			success:function(e){
				this.kit.goSuccessBack("保存成功");
			}
		}
	}
</script>
<style>
	page{
		background-color: #fff;
	}
</style>